#pragma once
#include "e2d/core/pch.h"
#include "e2d/core/Component.h"

namespace e2d
{
	struct  FixedJoint :public Component
	{
		FXCC_DEFINE_COMPONENT_LABEL(FixedJoint);

		e2d::EntityMap m_Left;

		e2d::EntityMap m_Right;

		e2d::Transform m_LeftTransform;

		e2d::Transform m_RightTransform;

		physx::PxFixedJoint* m_PxFixedJoint{ 0 };

		FixedJoint();

		void OnLoad();

		void OnUpdateRuntime();
		
		void Delete();
	};
};